# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=font-xfree86-type1
pkgver=1.0.5
pkgrel=1
pkgdesc="X.org xfree86 Type1 fonts"
url="https://xorg.freedesktop.org/"
arch="noarch"
license="X11"
options="!check"
depends="encodings font-alias mkfontscale fontconfig"
makedepends="font-util-dev bdftopcf"
source="https://www.x.org/releases/individual/font/font-xfree86-type1-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-mapfiles=/usr/share/fonts/util \
		--with-fontdir=/usr/share/fonts/Type1
	make
}

package() {
	make DESTDIR="$pkgdir" \
		MKFONTDIR=: \
		MKFONTSCALE=: \
		FCCACHE=: \
		install
}

sha512sums="
0a92d911269c5c4d815dfb617bfcc57c3bd54e4cd308eba87f9ec49851369d99dea61950dbd6cdc0f85db92c0c24055da88063b083b4b0cafb3315051bb650ed  font-xfree86-type1-1.0.5.tar.xz
"
